<style>
    .table-bordered > thead > tr > th, .table-bordered > thead > tr > td {

        white-space: nowrap;
        text-align: center;
        vertical-align: middle!important;
    }
    .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
        white-space: nowrap;
        text-align: center;
        vertical-align: middle!important;
        border: 1px solid #ddd;
    }
    .fixed-table-body{

    }
</style>
<div class=" panel panel-default pull-left" style="width: 100%;">
    <div class="panel-heading">
        <h3 class="panel-title">
            积分详情表
        </h3>
    </div>
    <div class="fixed-table-body panel-body">
        <table  class="table table-bordered table-hover" width="100%">
            <thead>
            <tr>
                <th>学校</th>
                <th>学校类别</th>
                <th>跑学校来人积分（合跑不另加分）</th>
                <th>跑下学校来人率（来人数/学校人数）</th>
                <th>销售积分</th>
                <th>发书来人率积分</th>
                <th>来人发书率（来人数/学校发书数）30%以上</th>
                <th>A类学校来人积分</th>
                <th>新外联跑学校销售积分</th>
                <th>奖励积分</th>
                <th>外联积分合计</th>
            </tr>

            {foreach name="result" item="vo"}
            <tr>
                <td>{$vo.school_name}</td>
                <td>{$vo.leibie}类</td>
                <td>{$vo.lairen_jifen}</td>
                <td>{$vo.xuexiao}</td>
                <td>{$vo.order}</td>
                <td>{$vo.fashu_jifen}</td>
                <td>{$vo.fashu}</td>
                <td>{$vo.new_integral}</td>
                <td>{$vo.jiafen}</td>
                <td>{$vo.city}</td>
                <td>{$vo.lairen_jifen+$vo.new_integral+$vo.order+$vo.fashu_jifen+$vo.jiafen+$vo.city}</td>
            </tr>
            {/foreach}
            </thead>
        </table>
    </div>
</div>

<div class=" panel panel-default pull-left" style="width: 100%;">
    <div class="panel-heading">
        <h3 class="panel-title">
            外联积分汇总表
        </h3>
    </div>
    <div class="fixed-table-body panel-body">
        <table  class="table table-bordered table-hover" width="100%">
            <thead>
            <tr>
                <th>市场</th>
                <th>所属区域</th>
                <th>外联</th>
                <th>积分</th>

            </tr>
            {foreach name="$user_num" item="vo" key="ks"}
            <tr>
                <td>{$department}</td>
                <td>{:TableField('AuthDepartment','name',$quyu)}</td>
                <td>{:TableField('Admin','username',$ks,'userid')}</td>
                <td>{$vo}</td>
            </tr>
            {/foreach}
            </thead>
        </table>
    </div>
</div>